package org.jeecg.modules.zhoupackage.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 里布表
 */
@Data
@Accessors(chain = true)
public class MlccMaterialLibuInfo {

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 里布名称
     */
    @Excel(name = "里布名称")
    private String libuName;

    /**
     * 编码
     */
    @Excel(name = "里布编号")
    private String libuCode;

    @Excel(name = "里布图片", type = 2, width = 25)
    private String libuImg;

    // 里布色型：默认0单色，1双色，2三色
    @Excel(name = "色型", replace = {"单色_0", "双色_1", "三色_2"})
    private Integer colorType;

    // 里布类型：默认0经典里布，1高级里布，2时尚里布
    @Excel(name = "里布类型", replace = {"经典里布_0", "高级里布_1", "时尚里布_2"})
    private Integer libuType;

    private String sysuserId;

    @Excel(name = "售价加价")
    private BigDecimal salesPrice;

    @Excel(name = "成本加价")
    private BigDecimal costPrice;
    private Integer status;
    /**
     * 备注
     */
    private String remark;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 创建人
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 部门编码
     */
    private String sysOrgCode;
}
